package com.community.admin.health.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author hikari
 * @date 2021/11/21
 */
@Data
public class HealthManageValid implements Serializable {
    @NotEmpty(message = "标题不能为空")
    private String title;
    @NotNull(message = "卫生清理标志不能为空")
    private Byte sanitary_deal;
    @NotEmpty(message = "卫生负责人不能为空")
    private String sanitary_person;
    @Pattern(regexp = "[0-9]{4}-[0-9]{2}-[0-9]{2}", message = "日期格式不对")
    private String sanitary_date;
}
